Skip to content

Instantly share code, notes, and snippets.

@realvjy
realvjy / ChoasLinesShader.metal
Last active May 22, 2024 01:35
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
@ibuildthecloud
ibuildthecloud / quickstart-playground.gpt
Created May 22, 2024 00:43
GPTScript to mimic Windows DevHome "Quickstart Playground" features
description: Generates a dev env from a prompt
tools: lang, prog, language-deps, devcontainer, launch
arg: prompt: The description of the program you would like to create
Do the following sequentially, not in parallel
1. Call @lang with ${prompt} to determine what programming language would be best suited for this task
1. Call @prog with ${prompt} and the determined language
1. Call @language-deps
1. Call @devcontainer
.css-selector {
    background: linear-gradient(43deg, #055783, #116e7c, #055783, #19699d);
    background-size: 800% 800%;
    -webkit-animation: see-meets-sun 26s ease infinite;
    -moz-animation: see-meets-sun 26s ease infinite;
    -o-animation: see-meets-sun 26s ease infinite;
    animation: see-meets-sun 26s ease infinite;
}
@-webkit-keyframes see-meets-sun {
    0%{background-position:53% 0%}
@StevenACoffman
StevenACoffman / goGetPrivate.md
Last active May 22, 2024 01:30 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.

Set GOPRIVATE to match your github organization

Cloning the repo using one of the below techniques should correctly but you may still getting an unrecognized import error.

As it stands for Go v1.13, I found in the doc that we should use the GOPRIVATE variable like so:

GOPRIVATE=github.com/ORGANISATION_OR_USER_NAME go get -u -f github.com/ORGANISATION_OR_USER_NAME/REPO_NAME

The 'go env -w' command (see 'go help env') can be used to set these variables for future go command invocations.

How to go get private repos using SSH key auth instead of password auth.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 22, 2024 01:21
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active May 22, 2024 01:18
Reset Navicat Premium 15/16/17 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 22, 2024 01:18
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary